import main
import output

import datetime

start_date = datetime.datetime(2014, 9, 10, 0, 0)
end_date = datetime.datetime(2014, 11, 8, 0, 0)
curr_date = start_date

start_date = datetime.datetime(2014, 9, 13, 0, 0)
end_date = datetime.datetime(2014, 9, 13, 0, 0)

train_dates = []
while curr_date <= end_date:
    train_dates.append(curr_date)
    curr_date = curr_date + datetime.timedelta(days = 1)
          
train_dates = [datetime.datetime(2014, 10, 23, 0, 0)]          
for start_date in train_dates:
    # READ DATA
    end_date = start_date + datetime.timedelta(days = 1)
    [class_data, scan_data_binned, gps_data, class_data_detail, mode_set] = main.load_data(start_date, end_date)     
    output.plot_figure_scatter(scan_data_binned, class_data, start_date, end_date, "bin" + datetime.datetime.strftime(start_date, "%Y-%m-%d") + datetime.datetime.strftime(end_date, "%Y-%m-%d") + ".pdf", (8,4), True, {}, {}, False)